package com.example.universitylibraryback.pipeline;

/**
 * 读者注册上下文，用于过滤器间数据传递
 */
public class ReaderRegistrationContext {
    private String rawInput;       // 原始输入
    private String readerId;       // 读者ID
    private String readerName;     // 读者姓名
    private String email;          // 邮箱
    private boolean isValid = true; // 数据有效性标识
    private String message = "";  // 消息

    // 构造函数
    public ReaderRegistrationContext(String rawInput) {
        this.rawInput = rawInput;
    }

    // getter与setter方法
    public String getRawInput() { 
        return rawInput; 
    }
    
    public void setRawInput(String rawInput) { 
        this.rawInput = rawInput; 
    }
    
    public String getReaderId() { 
        return readerId; 
    }
    
    public void setReaderId(String readerId) { 
        this.readerId = readerId; 
    }
    
    public String getReaderName() { 
        return readerName; 
    }
    
    public void setReaderName(String readerName) { 
        this.readerName = readerName; 
    }
    
    public String getEmail() { 
        return email; 
    }
    
    public void setEmail(String email) { 
        this.email = email; 
    }
    
    public boolean isValid() { 
        return isValid; 
    }
    
    public void setValid(boolean valid) { 
        isValid = valid; 
    }
    
    public String getMessage() { 
        return message; 
    }
    
    public void setMessage(String message) { 
        this.message = message; 
    }
}